package com.learn.springmvc.crontroller;

import com.learn.springmvc.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(path = {"/hello"})
public class HelloWorld {

    @RequestMapping(path = {"/request"})
    public String requestMap(){
        System.out.println("你好request");
        return "success";
    }

    @RequestMapping(path = {"/user"})
    public String requestUser(User user){
        System.out.println(user.toString());
        return "success";
    }
}
